<?php
namespace Admin\Controller;
use Think\Controller;
class BannerPointController extends  CommonController{
		
    /**广告位添加
     * undocumented function
     *
     * @return void
     * @author 
     **/
    function add()
    {       
        if (IN_POST) {

          $banner = $this->Model->data($_POST)->add();
           if($banner>0){
                 $this->success('添加成功',(U('banner_point/lists')),2);die;  
            }
        }
      $this->display();  
    }

    /**广告位列表
     * undocumented function
     *
     * @return void
     * @author 
     **/
    function lists()
    {
      $data = $this->Model->select();
      $this->assign('data',$data);
      $this->display();
    }
}